import java.time.ZoneId;
import java.time.ZonedDateTime;

public class ZoneID {
    public static void main(String[] args) {

        ZonedDateTime zonedDateTime = ZonedDateTime.now();
        System.out.println(zonedDateTime);


        ZoneId zoneId = ZoneId.of("America/Marigot");
        ZonedDateTime zonedDateTime1 = ZonedDateTime.now(zoneId);
        System.out.println(zonedDateTime1);
    }
}
/*        System.out.println(ZoneId.getAvailableZoneIds());
    }

}*/
/*        //获取默认时区
        ZoneId zoneId = ZoneId.systemDefault();
        System.out.println(zoneId);

        //获取指定时区
        ZoneId zoneId1 = ZoneId.of("Asia/Shanghai");
        System.out.println(zoneId1);

    }
}*/
